<template>
  <permissionBtn :auth="auth" myIcon="el-icon-plus" :name="name" @handle="handleCreate" />
</template>

<script>
import permissionBtn from '@/components/buttonGroup/permissionBtn'
export default {
  name: 'AddBtn',
  components: { permissionBtn },
  props: {
    auth: {
      type: String,
      default: ''
    }
  },

  data() {
    return {
      name: 'table.add'
    }
  },
  created() {},
  methods: {
    handleCreate() {
      this.$emit('handle')
    }
  }
}
</script>
